<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:util="http://java.sun.com/jsf/composite/util">
	
	<util:label grid="5" value="#{i18n.DescricaoEstendida_CodigoProjeto}" />
	<util:label grid="12" value="#{i18n.DescricaoEstendida_NomeProjeto}" />
	<div class="grid_5">
		<p:inputText value="#{deBean.deInstance.projeto.codigo}" styleClass="width_4" disabled="true" />
	</div>
	<div class="grid_12">
		<p:inputText value="#{deBean.deInstance.projeto.nome}" styleClass="width_12" disabled="true" />
	</div>
	
	<util:label grid="5" value="#{i18n.DescricaoEstendida_CodigoDescricao}" />
	<util:label grid="12" value="#{i18n.DescricaoEstendida_Nome}" />
	<div class="grid_5">
		<p:inputText value="#{deBean.deInstance.codigo}" styleClass="width_4" disabled="false" 
			required="true" requiredMessage="#{i18n.RequiredDescricao_Codigo}"/>
	</div>
	<div class="grid_12">
		<p:inputText value="#{deBean.deInstance.nome}" styleClass="width_12" disabled="false"
			required="true" requiredMessage="#{i18n.RequiredDescricao_Nome}"/>
	</div>
	
	<util:label grid="5" value="#{i18n.DescricaoEstendida_Situacao}" />
	<util:label grid="5" value="#{i18n.DescricaoEstendida_Risco}" />
	<util:label grid="7" value="#{i18n.DescricaoEstendida_Prioridade}" />
	<div class="grid_5">
		<p:inputText value="Aberta" styleClass="width_4" disabled="true" />
	</div>
	<div class="grid_5">
		<p:selectOneMenu value="#{deBean.deInstance.risco}" style="width:165px"
			required="true" requiredMessage="#{i18n.RequiredDescricao_Risco}">
			<f:selectItems value="#{enumBean.tipoRisco}" var="var"
				itemLabel="#{i18n[var.name()]}" itemValue="#{var}" />
		</p:selectOneMenu>
	</div>
	<div class="grid_7">
		<p:selectOneMenu value="#{deBean.deInstance.prioridade}" style="width:275px"
			required="true" requiredMessage="#{i18n.RequiredDescricao_Prioridade}" >
			<f:selectItems value="#{enumBean.tipoPrioridade}" var="var"
				itemLabel="#{i18n[var.name()]}" itemValue="#{var}" />
		</p:selectOneMenu>
	</div>
	
	<util:label grid="17" value="#{i18n.DescricaoEstendida_Sumario}" />
	<div class="grid_17">
		<p:inputTextarea value="#{deBean.deInstance.sumario}" styleClass="width_17" 
			disabled="false" autoResize="false" rows="4" />
	</div>
	
	<util:label grid="17" value="#{i18n.DescricaoEstendida_AtoresEnvolvidos}" />
	<div class="grid_17">
		<p:autoComplete value="#{deBean.atoresSelecionados}" styleClass="width_17"
			completeMethod="#{deBean.onCompleteAtores}" multiple="true">
		</p:autoComplete> 
	</div>
	
	<util:label grid="17" value="#{i18n.DescricaoEstendida_QuestoesEmAberto}" />
	<div class="grid_17">
		<p:inputTextarea value="#{deBean.deInstance.questoesAberto}" styleClass="width_17" 
			disabled="false" autoResize="false" rows="4" />
	</div>
	
</f:view>